<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>js改变网页背景颜色</title>
    <link rel="stylesheet" href="css/style.css">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
</head>
<body>


<input type="button" value="红色" onclick="color('red')" class="input1">
<input type="button" value="黄色" onclick="color('yellow')" class="input2">
<input type="button" value="蓝色" onclick="color('blue')" class="input3">



<script src="js/script.js"></script>
</body>
</html>